<?php
$today = getdate ();
$date = $today ['year'] . '-' . $today ['mon'] . '-' . $today ['mday'];
$user = strtoupper ( $_SESSION ['id'] );

$query_insertion_nouvelle_form = "INSERT INTO `$db`.`diagnostic` (`form`,`User`,`last_modifier`,`date`) VALUES ('$nouvel_form','$user','$user', '$date');";
mysql_query ( $query_insertion_nouvelle_form ) or die ( mysql_error () );
// ~ mysqli_query($link,$query_insertion_nouvelle_form) or die (mysqli_error());

$_SESSION ['form'] = $nouvel_form;

?>
